home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 86
/
(Vol 86) My Disc.iso
/
Games
/
restaurante_1422.swf
/
scripts
/
DefineSprite_515
/
frame_2
/
DoAction.as
Wrap
Text File
|
2009-04-29
|
1KB
|
45 lines
function affiche()
{
tf.htmlText = "<b>" + _parent.chrono.minutes + " min " + _parent.chrono.seconds + " sec</b>";
if(_parent.chrono.minutes < 3)
{
unlockGoodies(wall_1);
unlockGoodies(wall_2);
unlockGoodies(wall_3);
tf2.text = msgs[0];
}
else if(_parent.chrono.minutes >= 3 && _parent.chrono.minutes < 4)
{
lockGoodies(wall_1);
unlockGoodies(wall_2);
unlockGoodies(wall_3);
tf2.text = msgs[2];
}
else
{
lockGoodies(wall_1);
lockGoodies(wall_2);
unlockGoodies(wall_3);
tf2.text = msgs[1];
}
}
function unlockGoodies(mc)
{
trace(mc);
mc.filters = [];
}
function lockGoodies(mc)
{
mc.onPress = null;
mc.enabled = false;
}
wall_2.img.wall_mc.gotoAndStop(2);
wall_3.img.wall_mc.gotoAndStop(3);
wall_1.nom = "citron_";
wall_2.nom = "farine_";
wall_3.nom = "beurre_";
msgs = ["Great job; you got it in less than 3 minutes!","Well done, but you can do better!","That\'s good, but you need to practise a bit more"];
tf.autoSize = "center";
tf2.autoSize = "center";
affiche();